package com.song.EMS.bean;

import javax.management.relation.Role;
import java.sql.Timestamp;

public class User {
    private Integer userId;
    private String userName;
    private String IDCard;
    private Integer userGender;
    private String password;
    private String userPhone;
    private Timestamp loginTime;
    private Timestamp registerTime;

    private String loginTime1;
    private String registerTime1;
    private String gender;
    private Boolean isUser;

    public Boolean getUser() {
        return isUser;
    }

    public void setUser(Boolean user) {
        isUser = user;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public User(Integer userId, String userName, String IDCard, Integer userGender, String password, String userPhone) {
        this.userId = userId;
        this.userName = userName;
        this.IDCard = IDCard;
        this.userGender = userGender;
        this.password = password;
        this.userPhone = userPhone;
    }

    public User(String userName, String IDCard, Integer userGender, String password, String userPhone) {
        this.userName = userName;
        this.IDCard = IDCard;
        this.userGender = userGender;
        this.password = password;
        this.userPhone = userPhone;
    }

    public Integer getUserGender() {
        return userGender;
    }

    public void setUserGender(Integer userGender) {
        this.userGender = userGender;
    }

    public String getLoginTime1() {
        return loginTime1;
    }

    public void setLoginTime1(String loginTime1) {
        this.loginTime1 = loginTime1;
    }

    public String getRegisterTime1() {
        return registerTime1;
    }

    public void setRegisterTime1(String registerTime1) {
        this.registerTime1 = registerTime1;
    }

    public User() {
    }

    public User(Integer userId, String userName, String IDCard, Integer userGender, String password, String userPhone, Timestamp loginTime, Timestamp registerTime) {
        this.userId = userId;
        this.userName = userName;
        this.IDCard = IDCard;
        this.userGender = userGender;
        this.password = password;
        this.userPhone = userPhone;
        this.loginTime = loginTime;
        this.registerTime = registerTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", IDCard='" + IDCard + '\'' +
                ", userGender=" + userGender +
                ", password='" + password + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", loginTime=" + loginTime +
                ", registerTime=" + registerTime +
                '}';
    }
}
